package com.chenyaowei.product.domain;

import com.chenyaowei.common.annotation.Excel;
import com.chenyaowei.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * spu图片集对象 cyw_pro_spu_images
 *
 * @author 陈耀威
 * @date 2023-11-24
 */
public class CywProSpuImages extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 序号 */
    private Long id;

    /** spu_id */
    @Excel(name = "spu_id")
    private Long spuId;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String imageUrl;

    /** 图片排序 */
    @Excel(name = "图片排序")
    private Integer imageSord;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }
    public void setSpuId(Long spuId)
    {
        this.spuId = spuId;
    }

    public Long getSpuId()
    {
        return spuId;
    }
    public void setImageUrl(String imageUrl)
    {
        this.imageUrl = imageUrl;
    }

    public String getImageUrl()
    {
        return imageUrl;
    }
    public void setImageSord(Integer imageSord)
    {
        this.imageSord = imageSord;
    }

    public Integer getImageSord()
    {
        return imageSord;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("spuId", getSpuId())
            .append("imageUrl", getImageUrl())
            .append("imageSord", getImageSord())
            .toString();
    }
}
